package one;

public class test17963 {
    public static void main(String[] args) {
//        2^(p-1)*(2^p-1) Math.pow(a,b)
        int[] array = {2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203};
        for (int i = 0; i < 8; i++) {
            int p = array[i];
            long sum = (long) (Math.pow(2, p - 1) * (Math.pow(2, p) - 1));
            System.out.println(i + 1 + " " + sum);
        }
    }
}
